home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / a / amiga_vision_professional / amigavisionprofessiv2.04d.dms / in.adf / PointerMove.doc < prev   
Encoding:
Text File  |  1992-12-01  |  1.2 KB  |  31 lines

  1. NAME
  2.     PointerMove.AVf
  3.  
  4.  
  5. DESCRIPTION
  6.     PointerMove is a flow written to show how AmigaVision Professional
  7.     can move the application pointer and cause a mouse click.
  8.  
  9.     PointerMove creates three objects on the screen. It calculates the
  10.     center of the first object and moves the pointer to that spot. The
  11.     left mouse button then is clicked on that object.  The same process
  12.     is used for the second and third objects.  This continues until the
  13.     ESC key is pressed to quit the application.
  14.  
  15.     The cursor is moved using the following statements:
  16.              ObjSet ("AVSystem.Pointer", "LeftEdge", "MouseX")
  17.              ObjSet ("AVSystem.Pointer", "TopEdge", "MouseY")
  18.  
  19.     The ObjSet() function assigns the LeftEdge attribute of the system
  20.     object AVSystem.Pointer the value in MouseX.  The TopEdge attribute
  21.     of the same object is assigned the value MouseY.
  22.  
  23.     The simulate a left mouse button click, the ObjSet() function is used
  24.     again to assign the Action attribute of the AVSystem.Pointer object
  25.     the value of ClickLeft.  If ClickRight had been used, a right mouse
  26.     button click would be executed.
  27.  
  28.     When the ESC key is pressed, the Keyboard Interrupt is activated and
  29.     the flow ends.
  30.  
  31.